#if !defined(_MY_UTIL_H)
#define _MY_UTIL_H
	
int strAscToStrHex(const unsigned char *src, int srcLen, char *dest);

int hexStrToHexBuf(const char *src, int srcLen, unsigned char *dest);

int hexBufToHexStr(const unsigned char *src, int srcLen, char * dest);

int strCompareExp(LPCTSTR src1, LPCTSTR src2);

void getTime(char * dest);

CString getTimeYMD();

void toUppCase(char* val, int len);

CString formatAN(CString scrStr, int apduDataLen, int minLen);

CString formatCN(CString scrStr, int apduDataLen, int minLen);

#endif